<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="../css/smoothness/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.7.1.custom.min.js"></script>
<link href='saler.css' rel="stylesheet" type="text/css"/>	
<link href="../css/default.css" rel="stylesheet" type="text/css"/>	

<?php 
require_once('..\\common.php');
require_once('..\\predefine.php');
require_once("listclient.php");
CheckSalerLogon();
?>

<script type="text/javascript">
			$(function(){
					   
				$(".datepicker").datepicker();
				$('.datepicker').datepicker('option', {dateFormat: 'yy-mm-dd'});			
			});		
			
		</script>
<style type="text/css">
<!--
#searchbox form p strong {
	font-size: large;
}
-->
</style>
</head>

<body>




<div id ="searchbox"> 
<form action="search.php" method="post">
  <p><strong>输入一个或多个条件：</strong></p>
  <p>&nbsp;</p>
  <table cellspacing='1' cellpadding='1' >
    <tr>
    <td width="51">客户类型</td>
    <td width="326"><select name="clienttype" id="clienttype">
      <option value="-1" selected="selected">所有类型</option>
      <option value="0">一般客户</option>
      <option value="1">意向客户</option>
      <option value="2">成交客户</option>
      <option value="3">黑客户</option>
    </select></td>
  </tr>
  <tr>
    <td>客户名字 </td>
    <td><input name="clientname" type="text" id="clientname" size="20" /></td>
  </tr>
  <tr>
    <td>联系方式</td>
    <td><input type="text" name="contact" id="contact" /></td>
  </tr>
  <tr>
    <td>资金量</td>
    <td><p>
      <label>从
        <input name="minfund" type="text" id="minfund" size="10" />
      </label>
      <label>到
        <input name="maxfund" type="text" id="maxfund" size="10" />
        万元
      </label>
    </p></td>
  </tr>
  <tr>
    <td>需求</td>
    <td> <select name="selectneed"  id = "selectneed">
      <option value="-1" selected="selected">所有</option>     
      	<?php 
	  		for($index = 0;$index< ClientNeedList::getCount();$index++ )
			{
				$item = ClientNeedList::getItem($index);
				echo "<option value=$index ";		echo ">";		
				echo $item;
				echo "</option>";	
			}
		?>		
    </select></td>
  </tr>
   <tr>
    <td>性格</td>
    <td><select name="charact" id="charact">
      <option value="-1" selected="selected">所有</option>  
      <?php 
	  		for($index = 0;$index< ClientCharaList::getCount();$index++ )
			{
				$item = ClientCharaList::getItem($index);
				echo "<option value=$index ";	echo ">";			
				echo $item; 
				echo "</option>";	
			}
		?>    
    </select></td>
  </tr>
   <tr>
    <td>开发速度</td>
    <td><select name="devspeed" id="devspeed">
      <option value="-1" selected="selected">所有</option>
      <?php 
		for($index = 0;$index< ClientDevSpdList::getCount();$index++ )
		{
			$item = ClientDevSpdList::getItem($index);
			echo "<option value=$index ";			
			echo ">";
			echo $item;
			echo "</option>";	
		}
		?>
    </select></td>
  </tr>
  <tr>
    <td>提交时间</td>
    <td><input type="text" class="datepicker" name="fromtime" id="fromtime" autocomplete='false'/>
      
到
<input type="text" class="datepicker" name="totime" id="totime" /></td>
  </tr>
   <tr>
    <td>下次拜访时间</td>
    <td><input type="text" class="datepicker" name="next_fromtime" id="next_fromtime" />
      
到
<input type="text" class="datepicker" name="next_totime" id="next_totime" /></td>
  </tr>
  <tr>
    <td>产品</td>
    <td><input type="text" name="product" id="product" /></td>
  </tr>
  <tr>
    <td>备注</td>
    <td><input type="text" name="remark" id="remark" /></td>
  </tr>
  <tr>
    <td colspan="2"><input type="submit" name="Submit" id="button" value="搜索" /></td>
  </tr>
</table>
</form>
</div>



<a href= 'index.php'>回主页</a> 

</body>
</html>